﻿using ShoppingEntity;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IShoppingBll
{
    public interface ICommodityRecordBll : IBaseBll<Commodity_Record>
    {
        /// <summary>
        /// 添加商品
        /// </summary>
        /// <param name="commodityRecord"></param>
        /// <returns></returns>
        bool AddCommodityRecord(Commodity_Record commodityRecord);

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <param name="goodsId"></param>
        /// <returns></returns>
        object GetCommodityRecordListByPage(int page, int limit, out int count, string goodsId);

        /// <summary>
        /// 文件下载
        /// </summary>
        /// <returns></returns>
        Stream GetDownloadDatas();

        /// <summary>
        /// 商品文件上传
        /// </summary>
        /// <param name="stream"></param>
        /// <param name="iD"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        bool Upload(Stream stream, string userInfoId, out string msg,bool geshisss);






    }
}
